﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Transformer.iHunter.UI
{
    public partial class SelectFolderDialog : Form
    {
        public SelectFolderDialog(LocalClient client)
        {
            InitializeComponent();

            this.folderTreeView1.Client = client;
        }

        public IFolder SelectedFolder
        {
            get
            {
                return folderTreeView1.GetAndCreateSelectedFolder();
            }
        }

        public IFolder SelectFolder(Guid guid)
        {
            folderTreeView1.SelectedFolderGuid = guid;
            return SelectedFolder;
        }
    }
}
